// 设置token相关
// 1. 获取token
function getLocal (key = 'token') {
  window.localStorage.setItem(key)
}

// 2.保存token，因为要传值，所以带上value
function saveLocal (value, key = 'token') {
  window.localStorage.setItem(key, value)
}

// 3.移除token
function removeLocal (key = 'token') {
  window.localStorage.removeItem(key)
}

export { getLocal, saveLocal }
